package com.yndsoft.jc.model;

import java.io.Serializable;

/**
 * int                   id                     ID
 * int                   oid                    订单ID
 * int                   pid                    产品ID
 * int                   paid                   产品属性ID
 * int                   num                    数量
 * float                 productprice           购买时金额
 * float                 payprice               付款金额
 * float                 totalprice             总金额
 * (以下实体为获取信息时有数据，提交时不需)
 * Product               product                产品
 * ProductAttribute      productattribute       产品属性
 * (以下实体为检测机构获取订单详情时有数据，提交时不需)
 * SupplierResult          supplierresult       检验结果
 */
public class OrderDet implements Serializable {
    private static final long serialVersionUID = 6448259236560687631L;
    public Integer id;
    public String supplierid;
    public String supplier;
    public String img;
    public String name;
    public String no;
    public String typename;
    public String brand;
    public Integer expectednum;
    public Integer num;
    public Float expectedprice;
    public Float payprice;
    public Float totalprice;
    private boolean isChoose;//条目选中状态
    private Product product;
    private ProductAttribute productattribute;
    private SupplierResult supplierresult;

    public boolean isChoose() {
        return isChoose;
    }

    public void setChoose(boolean choose) {
        isChoose = choose;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public ProductAttribute getProductattribute() {
        return productattribute;
    }

    public void setProductattribute(ProductAttribute productattribute) {
        this.productattribute = productattribute;
    }

    public OrderDet() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSupplierid() {
        return supplierid;
    }

    public void setSupplierid(String supplierid) {
        this.supplierid = supplierid;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public Integer getExpectednum() {
        return expectednum;
    }

    public void setExpectednum(Integer expectednum) {
        this.expectednum = expectednum;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Float getExpectedprice() {
        return expectedprice;
    }

    public void setExpectedprice(Float expectedprice) {
        this.expectedprice = expectedprice;
    }

    public Float getPayprice() {
        return payprice;
    }

    public void setPayprice(Float payprice) {
        this.payprice = payprice;
    }

    public Float getTotalprice() {
        return totalprice;
    }

    public void setTotalprice(Float totalprice) {
        this.totalprice = totalprice;
    }

    public SupplierResult getSupplierresult() {
        return supplierresult;
    }

    public void setSupplierresult(SupplierResult supplierresult) {
        this.supplierresult = supplierresult;
    }
}